<script setup>
import {ref,computed} from 'vue'
const list = ref([1,2,3,4,5,6,7,8,9])
const big = computed(()=>{return list.value.filter(item => item > 2)})
const addFn = ()=> {
  list.value.push(10)
}
</script>

<template> 
  <div >{{ list }}</div>
  <div>{{ big }}</div>
  <button @click="addFn">加个值</button>
</template>

<style></style>
